package com.mc.bean;
/**
 * @Description 老师实体类
 * @author fyp
 * @date 2023/2/11 11:49
 * @version 1.0
 */
public class Teacher {

    /**
     *老师id
     */
    private int tid;

    /**
     *老师名字
     */
    private String tname;

    /**
     *电话号码
     */
    private String ttel;

    /**
     *密码
     */
    private String tpassword;

    /**
     *年龄
     */
    private int tage;

    /**
     *性别
     */
    private String tsex;

    /**
     *头像
     */
    private String theadurl;

    /**
     *角色id
     */
    private int rid;

    public Teacher() {
    }

    public Teacher(int tid, String tname, String ttel, String tpassword, int tage, String tsex, String theadurl, int rid) {
        this.tid = tid;
        this.tname = tname;
        this.ttel = ttel;
        this.tpassword = tpassword;
        this.tage = tage;
        this.tsex = tsex;
        this.theadurl = theadurl;
        this.rid = rid;
    }

    public Teacher(String tname, String ttel, String tpassword, int tage, String tsex, String theadurl, int rid) {
        this.tname = tname;
        this.ttel = ttel;
        this.tpassword = tpassword;
        this.tage = tage;
        this.tsex = tsex;
        this.theadurl = theadurl;
        this.rid = rid;
    }

    public Teacher(String tname, String ttel, String tpassword, int tage, String tsex) {
        this.tname = tname;
        this.ttel = ttel;
        this.tpassword = tpassword;
        this.tage = tage;
        this.tsex = tsex;
        this.rid = 2;
    }

    public Teacher(int tid) {
        this.tid = tid;
    }

    public Teacher(String ttel, String tpassword) {
        this.ttel = ttel;
        this.tpassword = tpassword;
    }



    @Override
    public String toString() {
        return "Teacher{" +
                "tid=" + tid +
                ", tname='" + tname + '\'' +
                ", ttel='" + ttel + '\'' +
                ", tpassword='" + tpassword + '\'' +
                ", tage=" + tage +
                ", tsex='" + tsex + '\'' +
                ", theadurl='" + theadurl + '\'' +
                ", rid=" + rid +
                '}';
    }

    public int getTid() {
        return tid;
    }

    public void setTid(int tid) {
        this.tid = tid;
    }

    public String getTname() {
        return tname;
    }

    public void setTname(String tname) {
        this.tname = tname;
    }

    public String getTtel() {
        return ttel;
    }

    public void setTtel(String ttel) {
        this.ttel = ttel;
    }

    public String getTpassword() {
        return tpassword;
    }

    public void setTpassword(String tpassword) {
        this.tpassword = tpassword;
    }

    public int getTage() {
        return tage;
    }

    public void setTage(int tage) {
        this.tage = tage;
    }

    public String getTsex() {
        return tsex;
    }

    public void setTsex(String tsex) {
        this.tsex = tsex;
    }

    public String getTheadurl() {
        return theadurl;
    }

    public void setTheadurl(String theadurl) {
        this.theadurl = theadurl;
    }

    public int getRid() {
        return rid;
    }

    public void setRid(int rid) {
        this.rid = rid;
    }
}

